home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / sostb.zip / TOOLBOX.DOC < prev    next >
Text File  |  1993-05-19  |  22KB  |  888 lines

  1.  
  2.                      Solid Oak Software's DOS Tool Box
  3.  
  4.  
  5. Over the past few years we have developed literally hundreds of little DOS
  6. utilities for use on our own development computers.  Some of the utilities
  7. included in this package are duplicated by other companies, but most are not.
  8. The ones that are, are for the most part, easier to use than other similar
  9. utilities.
  10.  
  11. Most of the included utilities are best used in batch files, and most set the
  12. DOS ErrorLevel to help you build conditional batch programs that are really
  13. useful.
  14.  
  15. The following program reference assumes the reader has a reasonable working
  16. knowledge of DOS batch files and DOS commands.  Please refer to your DOS
  17. reference manual for a complete discussion of batch files and ErrorLevels.
  18.  
  19.  
  20.                             PROGRAM REFERENCE
  21.  
  22. ASK.COM
  23.  
  24.        Syntax:  ASK q
  25.  
  26.       Options:  q = a question phrase
  27.  
  28.   Description:  Returns ErrorLevel 1 if the answer is no.
  29.  
  30.          Note:  Appends a (Y/n) prompt to the end of the phrase. The user must
  31.                 press a Y or an N to continue. If no key is pressed for a period
  32.                 of one minute or the ENTER key is pressed, a Y or yes is
  33.                 assumed.
  34.  
  35.       Example:  ASK Do you want to continue?
  36.  
  37.  
  38. AUTOBOOT.COM
  39.  
  40.        Syntax:  AUTOBOOT time
  41.  
  42.       Options:  Time must be specified as 00:00 or 00:00:00
  43.                 and must be in military (24 hr) format
  44.  
  45.   Description:  Automatically reboots computer at specified time.
  46.  
  47.       Example:  AUTOBOOT 00:01:00 will reboot the computer at 12:01 am.
  48.                 AUTOBOOT 00:21:00 will reboot the computer at 11:00 PM.
  49.  
  50.  
  51. CHIME.COM
  52.  
  53.        Syntax:  CHIME option
  54.  
  55.       Options:  /n  number of times to chime (Defaults to 1)
  56.                 /c  chime until user presses a key
  57.  
  58.   Description:  Plays a chime sound.
  59.  
  60.  
  61. DEFDRIVE.COM
  62.  
  63.        Syntax:  DEFDRIVE
  64.  
  65.       Options:  None
  66.  
  67.   Description:  Sets the DOS ErrorLevel to the number of the current default
  68.                 drive. ( A=1  B=2  C=3  etc.)
  69.  
  70.  
  71. DIRGE.COM
  72.  
  73.        Syntax:  DIRGE
  74.  
  75.       Options:  None
  76.  
  77.   Description:  Plays "Funeral Dirge".
  78.  
  79.  
  80. DISKLEFT.COM
  81.  
  82.        Syntax:  DISKLEFT d
  83.  
  84.       Options:  d = drive letter (defaults to C:)
  85.  
  86.   Description:  Sets ErrorLevel to remaining free disk space in MB.
  87.  
  88.       Example:  If you have a 200 MB hard disk, and 20 MB free space remaining,
  89.                 the ErrorLevel in this case will be set to 20.
  90.  
  91.          Note:  The maximum the ErrorLevel can be set to is 255.  Drives that
  92.                 have over 255 MB free space remaining will not cause the
  93.                 ErrorLevel to be set properly.
  94.  
  95.      See also:  PCLEFT.COM   PCUSED.COM   DISKUSED.COM
  96.  
  97.  
  98. DISKUSED.COM
  99.  
  100.        Syntax:  DISKUSED d
  101.  
  102.       Options:  d = drive letter (defaults to C:)
  103.  
  104.   Description:  Sets ErrorLevel to used disk space in MB.
  105.  
  106.       Example:  If you have a 200 MB hard disk, and 80 MB occupied disk space,
  107.                 the ErrorLevel in this case will be set to 80.
  108.  
  109.          Note:  The maximum the ErrorLevel can be set to is 255.  Drives that
  110.                 have over 255 MB occupied disk space will not cause the
  111.                 ErrorLevel to be set properly.
  112.  
  113.      See also:  PCLEFT.COM   PCUSED.COM   DISKLEFT.COM
  114.  
  115.  
  116. EVERYDAY.COM    Please see file EVERYDAY.DOC for details.
  117.  
  118.  
  119. FAKEBADC.COM
  120.  
  121.        Syntax:  FAKEBADC
  122.  
  123.       Options:  None
  124.  
  125.   Description:  Simulates a hard disk error and locks computer.
  126.  
  127.  
  128. FAKEBADN.COM
  129.  
  130.        Syntax:  FAKEBADN
  131.  
  132.       Options:  None
  133.  
  134.   Description:  Simulates a network error and locks computer.
  135.  
  136.  
  137. FILEKB.COM *
  138.  
  139.        Syntax:  FILEKB filespec
  140.  
  141.       Options:  filespec = valid DOS file name
  142.  
  143.   Description:  Sets ErrorLevel to file size in kilobytes.
  144.  
  145.  
  146. FILEAGE.COM *
  147.  
  148.        Syntax:  FILEAGE filespec
  149.  
  150.       Options:  filespec = valid DOS file name
  151.  
  152.   Description:  Sets ErrorLevel to the specified files age in months.
  153.  
  154.  
  155. FORMFEED.COM
  156.  
  157.        Syntax:  FORMFEED n
  158.  
  159.       Options:  n = parallel port number (defaults to 1)
  160.  
  161.   Description:  Issues a form feed to the specified printer.
  162.  
  163.  
  164. GOTODIR.COM
  165.  
  166.        Syntax:  GOTODIR
  167.  
  168.       Options:  none
  169.  
  170.   Description:  Used in conjunction with SAVEDIR.COM, this program will return
  171.                 you to a previously "saved" drive and directory.
  172.  
  173.      See also:  SAVEDIR.COM
  174.  
  175.  
  176. HDTYPE.COM
  177.  
  178.        Syntax:  HDTYPE n
  179.  
  180.       Options:  n = hard drive number (1 or 2)
  181.  
  182.   Description:  Sets ErrorLevel to drive type of the specified hard disk.
  183.  
  184.  
  185. ISANSI.COM
  186.  
  187.        Syntax:  ISANSI
  188.  
  189.       Options:  None
  190.  
  191.   Description:  Sets ErrorLevel to 1 if ANSI.SYS is not installed.
  192.  
  193.  
  194. ISASSIGN.COM
  195.  
  196.        Syntax:  ISASSIGN
  197.  
  198.       Options:  None
  199.  
  200.   Description:  Sets ErrorLevel to 1 if ASSIGN is not installed.
  201.  
  202.  
  203. ISAPPEND.COM
  204.  
  205.        Syntax:  ISAPPEND
  206.  
  207.       Options:  None
  208.  
  209.   Description:  Sets ErrorLevel to 1 if APPEND is not installed.
  210.  
  211.  
  212. ISBTWEEN.COM
  213.  
  214.        Syntax:  ISBTWEEN time1 time2
  215.  
  216.       Options:  Time1 and time2 must be specified as 00:00 or 00:00:00
  217.                 and must be in military (24 hr) format.
  218.  
  219.   Description:  Sets ErrorLevel to 1 if the system time is between time1 and
  220.                 time2.  This function is usefull for determining if an action
  221.                 should be performed if the system time is within a given time
  222.                 frame.
  223.  
  224.       Example:  ISBTWEEN 12:00 13:00 would set the DOS errorlevel to 1 if the
  225.                 system time was NOT between 12:00  noon and 1:00 pm.
  226.  
  227.      See also:  ISITAM.COM  ISITPM.COM  ISERLIER.COM  ISBTWEEN.COM  ISWKHRS.COM
  228.  
  229.  
  230. ISCDROM.COM
  231.  
  232.        Syntax:  ISCDROM
  233.  
  234.       Options:  None
  235.  
  236.   Description:  Sets ErrorLevel to 1 if CD Rom is not installed.
  237.  
  238.          Note:  This program checks for a CD Rom driver only.
  239.  
  240.  
  241. ISCLOCK.COM
  242.  
  243.        Syntax:  ISCLOCK
  244.  
  245.       Options:  None
  246.  
  247.   Description:  Sets ErrorLevel to 0 if real time clock is installed, 1 if the
  248.                 clock date is set to 01-01-1980, 2 if clock not present.
  249.  
  250.          Note:  If the battery in an AT class computer causes the system to
  251.                 loose its date setting, the date will almost always come up
  252.                 as 01-01-1980. This could be added to an AUTOEXEC.BAT file
  253.                 to check that the date has not been set to the default setting.
  254.  
  255.  
  256. ISCOLOR.COM
  257.  
  258.        Syntax:  ISCOLOR
  259.  
  260.       Options:  None
  261.  
  262.   Description:  Sets ErrorLevel to 1 if color video card is not installed.
  263.  
  264.          Note:  Some monochrome systems are CGA compatible and will return
  265.                 an ErrorLevel of 0 even though the monitor displays mono.
  266.  
  267.      See also:  WHATVID.COM
  268.  
  269.  
  270. ISDESQ.COM
  271.  
  272.        Syntax:  ISDESQ
  273.  
  274.       Options:  None
  275.  
  276.   Description:  Sets ErrorLevel to 1 if DesqView is not running.
  277.  
  278.  
  279. ISDOSKEY.COM
  280.  
  281.        Syntax:  ISDOSKEY
  282.  
  283.       Options:  None
  284.  
  285.   Description:  Sets ErrorLevel to 1 if DOSKEY is not installed.
  286.  
  287.  
  288. ISDRIVE.COM
  289.  
  290.        Syntax:  ISDRIVE c
  291.  
  292.       Options:  c = valid drive letter
  293.  
  294.   Description:  Sets ErrorLevel to 1 if specified drive is not ready.
  295.  
  296.      See also:  ISFILE.COM
  297.  
  298.  
  299. ISEMS.COM
  300.  
  301.        Syntax:  ISEMS
  302.  
  303.       Options:  None
  304.  
  305.   Description:  Sets ErrorLevel to 1 if EMS driver is not installed.
  306.  
  307.  
  308. ISERLIER.COM
  309.  
  310.        Syntax:  ISERLIER time
  311.  
  312.       Options:  Time must be specified as 00:00 or 00:00:00
  313.                 and must be in military (24 hr) format
  314.  
  315.   Description:  Sets ErrorLevel to 1 if the system time is not earlier
  316.                 than time specified.
  317.  
  318.      See also:  ISLATER.COM  ISWKHRS.COM  ISBTWEEN.COM  ISITAM.COM  ISITPM.COM
  319.  
  320.  
  321. ISFILE.COM
  322.  
  323.        Syntax:  ISFILE filespec
  324.  
  325.       Options:  filespec is any valid DOS filename or drive letter
  326.  
  327.   Description:  If the specified file does not exist, or the drive that was
  328.                 specified is not ready, the program sets an ErrorLevel of 1
  329.  
  330.          Note:  This is a useful function to use from batch files if you want
  331.                 to run a program from a floppy disk like a virus detection
  332.                 program.  You can use ISFILE to check that a disk is in the
  333.                 specified drive and that the desired file is on the disk before
  334.                 proceeding.  (i.e. ISFILE b:viruschk.exe)
  335.  
  336.      See also:  ISDRIVE.COM
  337.  
  338.  
  339. ISITAM.COM
  340.  
  341.        Syntax:  ISITAM
  342.  
  343.       Options:  None
  344.  
  345.   Description:  Sets ErrorLevel to 1 if the system time is after 12 noon.
  346.  
  347.      See also:  ISITPM.COM  ISLATER.COM  ISERLIER.COM  ISBTWEEN.COM  ISWKHRS.COM
  348.  
  349. ISITPM.COM
  350.  
  351.        Syntax:  ISITPM
  352.  
  353.       Options:  None
  354.  
  355.   Description:  Sets ErrorLevel to 1 if the system time is before 12 noon.
  356.  
  357.      See also:  ISITAM.COM  ISLATER.COM  ISERLIER.COM  ISBTWEEN.COM  ISWKHRS.COM
  358.  
  359.  
  360. ISLATER.COM
  361.  
  362.        Syntax:  ISLATER time
  363.  
  364.       Options:  Time must be specified as 00:00 or 00:00:00
  365.                 and must be in military (24 hr) format
  366.  
  367.   Description:  Sets ErrorLevel to 1 if the system time is not later
  368.                 than time specified.
  369.  
  370.      See also:  ISITAM.COM  ISITPM.COM  ISERLIER.COM  ISBTWEEN.COM  ISWKHRS.COM
  371.  
  372.  
  373. ISMATH.COM
  374.  
  375.        Syntax:  ISMATH
  376.  
  377.       Options:  None
  378.  
  379.   Description:  Sets ErrorLevel to 1 if math chip is not installed.
  380.  
  381.  
  382. ISMOUSE.COM
  383.  
  384.        Syntax:  ISMOUSE
  385.  
  386.       Options:  None
  387.  
  388.   Description:  Sets ErrorLevel to 1 if mouse driver is not installed.
  389.  
  390.          Note:  This program does not check for the physical presence of a
  391.                 mouse, only the driver (i.e. MOUSE.COM ).
  392.  
  393.  
  394. ISNETBIO.COM
  395.  
  396.        Syntax:  ISNETBIO
  397.  
  398.       Options:  None
  399.  
  400.   Description:  Sets ErrorLevel to 1 if no NETBIOS compatible driver is loaded.
  401.  
  402.  
  403. ISNEWDSK.COM
  404.  
  405.        Syntax:  ISNEWDSK d
  406.  
  407.       Options:  d = drive letter ( A or B )
  408.  
  409.   Description:  Sets ErrorLevel to 1 if specified floppy disk has not been
  410.                 changed since last access.
  411.  
  412.          Note:  An empty disk drive will return an ErrorLevel of 1 since a
  413.                 new disk has not been inserted yet.
  414.  
  415.  
  416. ISPRINT.COM
  417.  
  418.        Syntax:  ISPRINT n
  419.  
  420.       Options:  n = parallel port number
  421.  
  422.   Description:  Sets ErrorLevel to 1 if printer is not on line and ready.
  423.  
  424.  
  425. ISPRINTX.COM
  426.  
  427.        Syntax:  ISPRINTX
  428.  
  429.       Options:  None
  430.  
  431.   Description:  Sets ErrorLevel to 1 if PRINT.EXE is not installed.
  432.  
  433.  
  434. ISREMOVE.COM
  435.  
  436.        Syntax:  ISREMOVE d
  437.  
  438.       Options:  d = drive letter
  439.  
  440.   Description:  Sets ErrorLevel to 1 if specified drive is NOT a removable
  441.                 (floppy) drive type.
  442.  
  443.  
  444. ISSHARE.COM
  445.  
  446.        Syntax:  ISSHARE
  447.  
  448.       Options:  None
  449.  
  450.   Description:  Sets ErrorLevel to 1 if SHARE.EXE is not installed.
  451.  
  452.  
  453. ISTEXT.COM
  454.  
  455.        Syntax:  ISTEXT c
  456.  
  457.       Options:  c = any string of text to find
  458.  
  459.   Description:  Scans current screen contents for text specified when run.
  460.                 Sets ErrorLevel to 1 if text is not found on screen.
  461.  
  462.       Example:  ISTEXT error
  463.                 If the text "error" is found anywhere on the screen, the
  464.                 ErrorLevel will be set to 0.  NOT case sensitive.
  465.  
  466.  
  467. ISTODAY.COM
  468.  
  469.        Syntax:  ISTODAY day [day1] [day2] ...
  470.  
  471.       Options:  day = the name if any day of the week (i.e. Monday Tue )
  472.  
  473.   Description:  Sets ErrorLevel to 1 if system date indicates the current day
  474.                 is not one of the days specified.
  475.  
  476.       Example:  ISTODAY Mon tue WED Thursday
  477.                 If the current day of the week is NOT one of the ones
  478.                 specified, the ErrorLevel would be set to one.
  479.  
  480.          Note:  This program is usefull in batch files where you want or don't
  481.                 want an action to be performed on a certain day or group of
  482.                 days.
  483.  
  484.      See also:  ISWKDAY.COM
  485.  
  486.  
  487. ISVOL.COM
  488.  
  489.        Syntax:  ISVOL drive volume
  490.  
  491.       Options:  drive = valid drive letter ( A B C etc.)
  492.                 volume = volume name to check for
  493.  
  494.   Description:  Sets ErrorLevel to 1 if the volume name of the specified drive
  495.                 does not match the specified volume name.
  496.  
  497.          Note:  This program is useful in creating installation batch files
  498.                 and other routines where you want to check to see that a
  499.                 particular disk is in a floppy drive.  For example you might
  500.                 have a set of three disks that must be inserted in the correct
  501.                 order.  You could set the volume labels ( see VL.COM ) to
  502.                 DISK1 DISK2 and DISK3. You could then check for the correct
  503.                 volume name with ISVOL.COM before performing an action.
  504.  
  505.  
  506. ISWKDAY.COM
  507.  
  508.        Syntax:  ISWKDAY
  509.  
  510.       Options:  None
  511.  
  512.   Description:  Sets ErrorLevel to 1 if system date indicates the current day
  513.                 is not a work day, Mon-Fri.
  514.  
  515.      See also:  ISTODAY.COM
  516.  
  517.  
  518. ISWKHRS.COM
  519.  
  520.        Syntax:  ISWKHRS
  521.  
  522.       Options:  None
  523.  
  524.   Description:  Sets ErrorLevel to 1 if system time indicates the current
  525.                 is not between 8am and 5pm.
  526.  
  527.      See also:  ISERLIER.COM   ISLATER.COM
  528.  
  529.  
  530. ISXMS.COM
  531.  
  532.        Syntax:  ISXMS
  533.  
  534.       Options:  None
  535.  
  536.   Description:  Sets ErrorLevel to 0 if an extended memory driver is installed,
  537.                 1 if not.
  538.  
  539.  
  540. LOCKUP.COM
  541.  
  542.        Syntax:  LOCKUP
  543.  
  544.       Options:  None
  545.  
  546.   Description:  Locks up computer forcing re-boot.
  547.  
  548.  
  549. NOBREAK.COM
  550.  
  551.        Syntax:  NOBREAK
  552.  
  553.       Options:  /u (unloads program)
  554.  
  555.   Description:  TSR disables Ctrl-C and Ctrl-Break
  556.  
  557.  
  558. PCLEFT.COM
  559.  
  560.        Syntax:  PCLEFT d
  561.  
  562.       Options:  d = drive letter (defaults to C:)
  563.  
  564.   Description:  Sets ErrorLevel to remaining free disk space in as a percentage
  565.  
  566.       Example:  If you have a 200 MB hard disk, and 20 MB free space remaining,
  567.                 your free disk space is 10%.  The ErrorLevel in this case will
  568.                 be set to 10.
  569.  
  570.      See also:  PCUSED.COM   DISKLEFT.COM  DISKUSED.COM
  571.  
  572.  
  573. PCUSED.COM
  574.  
  575.        Syntax:  PCUSED d
  576.  
  577.       Options:  d = drive letter (defaults to C:)
  578.  
  579.   Description:  Sets ErrorLevel to the amount of occupied (used) disk space
  580.                 as a percentage
  581.  
  582.       Example:  If you have a 200 MB hard disk, and 150 MB of used disk space,
  583.                 your free disk space is 25%.  The ErrorLevel in this case will
  584.                 be set to 25%.
  585.  
  586.      See also:  PCLEFT.COM   DISKLEFT.COM  DISKUSED.COM
  587.  
  588.  
  589. PF.COM
  590.  
  591.        Syntax:  PF filename [/port]
  592.  
  593.       Options:  filename = any valid DOS file specification including wild cards
  594.                 port = optional printer port number (1,2 or 3). Defaults to 1.
  595.  
  596.   Description:  Prints specified file(s) to printer with header indicating time,
  597.                 date, file size, etc.
  598.  
  599.  
  600. PRTSCRN.COM
  601.  
  602.        Syntax:  PRTSCRN n
  603.  
  604.       Options:  n = parallel port number (defaults to 1)
  605.  
  606.   Description:  Prints current screen and form feed to specified printer. Also
  607.                 date and time stamps printout and specifies network node if
  608.                 installed on a network.
  609.  
  610.  
  611. QFLOPS.COM
  612.  
  613.        Syntax:  QFLOPS
  614.  
  615.       Options:  None
  616.  
  617.   Description:  Sets ErrorLevel to number of floppy drives installed.
  618.  
  619.  
  620. QPPORTS.COM
  621.  
  622.        Syntax:  QPPORTS
  623.  
  624.       Options:  None
  625.  
  626.   Description:  Sets ErrorLevel to number of parallel ports installed.
  627.  
  628.  
  629. QSPORTS.COM
  630.  
  631.        Syntax:  QSPORTS
  632.  
  633.       Options:  None
  634.  
  635.   Description:  Sets ErrorLevel to number of serial ports installed.
  636.  
  637.  
  638. REBOOT.COM
  639.  
  640.        Syntax:  REBOOT
  641.  
  642.       Options:  None
  643.  
  644.   Description:  Reboots computer
  645.  
  646.  
  647. RING.COM
  648.  
  649.        Syntax:  RING option
  650.  
  651.       Options:  /n = number of times to ring (defaults to 1)
  652.                 /c  ring until user presses a key
  653.  
  654.   Description:  Plays a ringing sound.
  655.  
  656.  
  657. SAVEDIR.COM
  658.  
  659.        Syntax:  SAVEDIR
  660.  
  661.       Options:  none
  662.  
  663.   Description:  Used in conjunction with GOTODIR.COM, this program will "save"
  664.                 the current drive and directory information when ever you run
  665.                 the program. You can then run GOTODIR at any time later to
  666.                 return to the original drive and directory.
  667.  
  668.      See also:  GOTODIR.COM
  669.  
  670.  
  671. SAVSCRN.COM
  672.  
  673.        Syntax:  SAVSCRN filespec
  674.  
  675.       Options:  filespec = any valid DOS file name and path
  676.  
  677.   Description:  Captures the current text screen to the specified file. If the
  678.                 file already exists, it will append to the end of the file. It
  679.                 date and time stamps the capture and specifies network node if
  680.                 installed on a network.
  681.  
  682.  
  683. SIREN.COM
  684.  
  685.        Syntax:  SIREN option
  686.  
  687.       Options:  /n = number of times to loop (defaults to 1)
  688.                 /c = loops until user presses a key
  689.  
  690.   Description:  Plays a siren type sound.
  691.  
  692.  
  693. START.COM
  694.  
  695.        Syntax:  START expression
  696.  
  697.       Options:  expression = a comment of some kind.
  698.  
  699.   Description:  Starts a timed event sequence. Not a TSR.
  700.                 Records information in PC-Sentry log file if installed.
  701.  
  702.       Example:  START Word processing
  703.  
  704.  
  705. STOP.COM
  706.  
  707.        Syntax:  STOP
  708.  
  709.       Options:  none
  710.  
  711.   Description:  Displays the elapsed time since START.COM was run.
  712.                 Records information in PC-Sentry log file if installed.
  713.  
  714.  
  715. VL.COM
  716.  
  717.        Syntax:  IV drive volume
  718.  
  719.       Options:  drive = valid drive letter ( A B C etc.)
  720.                 volume = new volume name
  721.  
  722.   Description:  Sets or resets the volume name of the specified drive.
  723.  
  724.  
  725. WAIT.COM
  726.  
  727.        Syntax:  WAIT n
  728.  
  729.       Options:  n = seconds to wait
  730.  
  731.   Description:  Waits a specified number of seconds.
  732.  
  733.  
  734. WEEKOFMO.COM
  735.  
  736.        Syntax:  WEEKOFMO
  737.  
  738.       Options:  None
  739.  
  740.   Description:  Sets ErrorLevel to current week of the month.
  741.  
  742.          Note:  This function returns the actual week of the month, NOT the
  743.                 Nth 7 day period. The actual week is calculated on a 7 day
  744.                 basis from Sunday morning to Saturday night. For example,
  745.                 if the 1st falls on a Wednesday, then Wednesday through Saturday
  746.                 is counted as week 1. In this case, week 1 is actually only
  747.                 4 days long. Week 2 begins with Sunday and is in 7 day cycles
  748.                 after that.
  749.  
  750.  
  751. WEEKOFYR.COM
  752.  
  753.        Syntax:  WEEKOFYR
  754.  
  755.       Options:  None
  756.  
  757.   Description:  Sets ErrorLevel to current week of the year.
  758.  
  759.          Note:  This function returns the actual week of the year, NOT the
  760.                 Nth 7 day period. The actual week is calculated on a 7 day
  761.                 basis from Sunday morning to Saturday night. For example,
  762.                 if Jan 1 falls on a Wednesday, then Wednesday through Saturday
  763.                 is counted as week 1.  In this case, week 1 is actually only
  764.                 4 days long.  Week 2 begins with Sunday and is in 7 day cycles
  765.                 after that.
  766.  
  767. WHATCPU.COM
  768.  
  769.        Syntax:  WHATCPU
  770.  
  771.       Options:  None
  772.  
  773.   Description:  Sets ErrorLevel to 1 for 8086-8088, 2 for 80286, 3 for 80386,
  774.                 4 for 80486.
  775.  
  776.  
  777. WHATDATE.COM
  778.  
  779.        Syntax:  WHATDATE
  780.  
  781.       Options:  None
  782.  
  783.   Description:  Sets ErrorLevel to the current calendar date. (date of the mo)
  784.  
  785.       Example:  If the system date is May 19, then ErrorLevel is set to 19.
  786.  
  787.  
  788. WHATDAY.COM
  789.  
  790.        Syntax:  WHATDAY
  791.  
  792.       Options:  None
  793.  
  794.   Description:  Sets ErrorLevel to the current day of the week. 1 for Sunday
  795.                 2 for Monday, 3 for Tuesday, and so on.
  796.  
  797.  
  798. WHATDOS.COM
  799.  
  800.        Syntax:  WHATDOS
  801.  
  802.       Options:  None
  803.  
  804.   Description:  Sets ErrorLevel to the DOS major version number.
  805.  
  806.       Example:  If the your DOS version is 3.3 then ErrorLevel is set to 3.
  807.                 If the your DOS version is 4.01 then ErrorLevel is set to 4.
  808.  
  809.  
  810. WHATEMS.COM
  811.  
  812.        Syntax:  WHATEMS
  813.  
  814.       Options:  None
  815.  
  816.   Description:  Sets ErrorLevel to the EMS driver major version number, 4 for
  817.                 4.00 etc.
  818.  
  819.  
  820. WHATFLOP.COM
  821.  
  822.        Syntax:  WHATFLOP d
  823.  
  824.       Options:  d = drive letter
  825.  
  826.   Description:  Sets ErrorLevel to correspond to the type of floppy disk drive
  827.                 installed in the specified drive.
  828.                    0 = not installed
  829.                    1 = 5¼ inch 360 KB
  830.                    2 = 5¼ inch 1.2 MB
  831.                    3 = 3½ inch 720 KB
  832.                    4 = 3½ inch 1.44 MB
  833.                    5 or greater = unknown drive type
  834.  
  835.  
  836. WHATHOUR.COM
  837.  
  838.        Syntax:  WHATHOUR
  839.  
  840.       Options:  None
  841.  
  842.   Description:  Sets ErrorLevel to the current hour in 24 hour format.
  843.  
  844.       Example:  If the time is 1:00pm the ErrorLevel is set to 13.
  845.  
  846.  
  847. WHATKB.COM
  848.  
  849.        Syntax:  WHATKB
  850.  
  851.       Options:  None
  852.  
  853.   Description:  Sets ErrorLevel to 0 for US keyboard, 1 to foreign.
  854.  
  855.  
  856. WHATMO.COM
  857.  
  858.        Syntax:  WHATMO
  859.  
  860.       Options:  None
  861.  
  862.   Description:  Sets ErrorLevel to the current month number. (1-12)
  863.  
  864.       Example:  If the current month is May the ErrorLevel is set to 5.
  865.  
  866.  
  867. WHATVID.COM
  868.  
  869.        Syntax:  WHATVID
  870.  
  871.       Options:  None
  872.  
  873.   Description:  Sets ErrorLevel video type setup as follows:
  874.                    1 = Monochrome adapter
  875.                    2 = Hercules adapter
  876.                    3 = CGA adapter
  877.                    4 = EGA adapter with monochrome monitor
  878.                    5 = EGA adapter with color monitor
  879.                    6 = VGA adapter with monochrome monitor
  880.                    7 = VGA adapter with color monitor
  881.                    8 = MCGA adapter with monochrome monitor
  882.                    9 = MCGA adapter with color monitor
  883.                   10 = EGA adapter with color CGA monitor
  884.                   11 = IBM 8514/A adapter
  885.  
  886.  
  887.  
  888.